<?php

namespace admin\helper;

class common
{
    public $register;
    public $tongji_map;

    public function __construct($register)
    {
        $this->register = $register;
        $this->tongji_map = new tongji_map();
        if (!$_SESSION['admin']['uid']) {
            //$this->register->get("view")->display('login.twig');
            require_once 'build/login.html';
            exit;
        }
    }

    public function __get($key)
    {
        return $this->register->get($key);
    }
}